home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / x11 / ximf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-28  |  1.2 KB  |  35 lines  |  [TEXT/KAHL]

  1. /* Definitions of image families for the X11 interface to Xconq.
  2.    Copyright (C) 1992, 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. /* Structure for X11-specific data. */
  10.  
  11. /* Note that this structure has an implicit display and therefore player,
  12.    because pixmaps and fonts always have a particular associated display. */
  13.  
  14. #include <X11/Intrinsic.h>
  15.  
  16. typedef struct a_x11_image {
  17.     Image *generic;        /* pointer to generic image */
  18.     char *monodata;
  19.     char *colrdata;
  20.     char *maskdata;
  21.     Pixmap mono;
  22.     Pixmap colr;
  23.     Pixmap mask;
  24.     XFontStruct *font;
  25.     char monochar;
  26.     char maskchar;
  27.     Pixel *colpix;
  28. } X11Image;
  29.  
  30. extern X11Image *init_x11_image PROTO ((Image *img));
  31. extern X11Image *get_x11_image PROTO ((Image *img));
  32. extern void x11_load_imf PROTO ((Display *dpy, Window rw, ImageFamily *imf));
  33. extern void x11_interp_imf PROTO ((Display *dpy, Window rw, ImageFamily *imf, int force));
  34. extern void reverse_bit_endianness PROTO ((char *rawdata, int numbytes));
  35.